<%@ include file="/common/taglibs.jsp"%>

	<c:set var="type" value="${param.t}"/>
	<c:set var="locale" value="${param.request_locale}"/>
	<c:if test="${param.t!=1 && param.t!=2 && param.t!=3 && param.t!=4 && param.t!=5 && param.t!= 6}">
		<c:set var="type" value="0"/>
	</c:if>

	<c:if test="${locale!=null}">
		<fmt:setLocale value='${locale}' scope="session" />
	</c:if>

	<c:set var="mainContent">
		<authz:authorize ifAnyGranted="ROLE_ANONYMOUS">
			mainContent${application_theme}.xhtml
		</authz:authorize>
		<authz:authorize ifAnyGranted="ROLE_USER, ROLE_ADMIN">
			mainContent${application_theme}.html
		</authz:authorize>
	</c:set>

	<c:set var="typeContent">
		<authz:authorize ifAnyGranted="ROLE_ANONYMOUS">
			typeContent${application_theme}.xhtml
		</authz:authorize>
		<authz:authorize ifAnyGranted="ROLE_USER, ROLE_ADMIN">
			typeContent${application_theme}.html
		</authz:authorize>
	</c:set>
	
	<ul>
		<li <c:if test= "${type == 0}"> class="current-cat"</c:if>><a href="<c:out value="${mainContent}"/>?t=0"><fmt:bundle basename="CustomizableResources"><fmt:message key="menu.all"/></fmt:bundle></a></li>
		<li <c:if test= "${type == 1}"> class="current-cat"</c:if>><a href="<c:out value="${typeContent}"/>?t=1"><fmt:bundle basename="CustomizableResources"><fmt:message key="menu.news"/></fmt:bundle></a></li>
		<li <c:if test= "${type == 2}"> class="current-cat"</c:if>><a href="<c:out value="${typeContent}"/>?t=2"><fmt:bundle basename="CustomizableResources"><fmt:message key="menu.articles"/></fmt:bundle></a></li>
		<li <c:if test= "${type == 3}"> class="current-cat"</c:if>><a href="<c:out value="${typeContent}"/>?t=3"><fmt:bundle basename="CustomizableResources"><fmt:message key="menu.blogs"/></fmt:bundle></a></li>
		
		<li <c:if test= "${type == 4}"> class="current-cat"</c:if>><a href="<c:out value="${typeContent}"/>?t=4"><fmt:bundle basename="CustomizableResources"><fmt:message key="menu.books"/></fmt:bundle></a></li>
		<li <c:if test= "${type == 5}"> class="current-cat"</c:if>><a href="<c:out value="${typeContent}"/>?t=5"><fmt:bundle basename="CustomizableResources"><fmt:message key="menu.jobs"/></fmt:bundle></a></li>
		<li <c:if test= "${type == 6}"> class="current-cat"</c:if>><a href="<c:out value="${typeContent}"/>?t=6"><fmt:bundle basename="CustomizableResources"><fmt:message key="menu.presentations"/></fmt:bundle></a></li>
		
	</ul>
	
	<form class="searchform" method="get" action="searchArticles${application_theme}.html">
		<fieldset>
			<input value="<fmt:bundle basename="ApplicationResources"><fmt:message key="search.keywords"/></fmt:bundle>" name="clientQuery" class="searchfield" type="text">
			<input value="Search" class="searchbutton" type="submit">
		</fieldset>
	</form>

	<div class="clear"></div>